/**
 * 
 */
package com.yonder.agenda.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yonder.agenda.entity.Telephone;
import com.yonder.agenda.repository.TelephoneRepository;
import com.yonder.agenda.repository.generic.EntityRepository;
import com.yonder.agenda.service.generic.AbstractEntityService;

/**
 * An implementation of {@link TelephoneService} interface.
 * 
 * @author CosminS
 * @since Jan 29, 2014
 */
@Service
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS)
@Transactional(readOnly = true, rollbackFor = Exception.class)
public class TelephoneService extends AbstractEntityService<Telephone> {

	/**
	 * Injected {@link TelephoneRepository} repository.
	 */
	@Autowired
	private TelephoneRepository telephoneRepository;

	@Override
	protected EntityRepository<Telephone> getRepository() {
		return telephoneRepository;
	}
}